<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Theconnexter</title>
  <subtitle>Latest News</subtitle>
  <link href="<?php echo url_for('feed', array('sf_format' => 'atom'), true) ?>" rel="self"/>
  <link href="<?php echo url_for('homepage', true) ?>"/>
  <updated><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', Doctrine_Core::getTable('Journal')->getLatestNews()->getDateTimeObject('created_at')->format('U')) ?></updated>
  <author><name>Theconnexter</name></author>
  <id><?php echo sha1(url_for('feed', array('sf_format' => 'atom'), true)) ?></id>
 <?php foreach($journalFeed as $journal) :?>
  <entry>
    <title><?php echo __('News number :').'<span class="numero">'.$journal->getId().'</span><span class="titre">'.$journal->getTitre().'</span>' ?></title>
    <link href="" />
    <id><?php echo sha1($journal->getId()) ?></id>
    <updated><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', $journal->getDateTimeObject('created_at')->format('U')) ?></updated>
    <summary type="xhtml">
		<div xmlns="http://www.w3.org/1999/xhtml">
			<div class="resume-new"><?php echo stripslashes($journal->getResume(ESC_RAW)) ?><p class="docjoint"><span><a href="<?php echo $sf_request->getHost().'/uploads/journal/'.$journal->getDocjoint()?>" title="<?php  echo __('Download news number').' '.$journal->getId()?>"><?php echo __('Click here to download this news')?></a></span></p></div>
		</div>
	</summary>
    <author><name>Theconnexter</name></author>
  </entry>
  <?php endforeach; ?>
</feed>